<template>
  <div
    class="header-container"
    :style="{ backgroundColor: bgcolor, color: color, fontSize: fsize + 'px' }"
  >
    {{ title }}
  </div>
</template>

<script>
export default {
  name: 'EsHaader',
  props: {
    title: {
      type: String,
      default: 'header'
    },
    color: {
      type: String,
      default: '#fff'
    },
    bgcolor: {
      type: String,
      default: '#007BFF'
    },
    fsize: {
      type: Number,
      default: 12
    }
  }
}
</script>

<style lang="less" scoped>
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  height: 45px;
  width: 100%;
  text-align: center;
  line-height: 45px;
  z-index: 999;
}
</style>
